x86_32: handle x87 opcodes in TLS segment fixups
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 28 Jul 2009 15:15:18 +0000 (16:15 +0100)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 28 Jul 2009 15:15:18 +0000 (16:15 +0100)
commitebbd515a323f620e8c6e6e0a678b331754996d9d
treec5782c7cf6e7ed6b4eee69fd2bbb76dc872977a6
parentc391d9bd062a0e5c6cd0d3376ad5c669fc4da733
x86_32: handle x87 opcodes in TLS segment fixups

This patch adds support to the TLS fixup code for x87 opcodes.  These
can be treated like 2-byte opcodes with a weird encoding.

The patch includes some extra changes because, now that we have >2
opcode tables and 9 different lead bytes in a two-byte opcode, a
simple boolean code will not be enough to differentiate one- and
two-byte opcodes.  Besides this, the patch is trivial since the
segment fixup code cares about the operands of the instruction, not
about its semantics.

From: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
xen/arch/x86/x86_32/seg_fixup.c